# 输出1000以内的水仙花数
for n in range(100, 1000):
    a = n // 100
    b = n // 10 % 10
    c = n % 10
    if a**3 + b**3 + c**3 == n:
        print(n)


# 99 乘法表
i = 1
while i <= 9:
    j = 1
    while j <= i:
        print(f'{j}×{i}={i*j}', end='\t')
        j += 1
    print()
    i += 1


# M = int(input("请输入会员的月消费金额："))
# S = int(input("请输入会员的累计消费金额："))
# if M >= 1000 and S >= 10000:
#     print("钻石会员")
# elif M >= 500 and M < 1000 and S >= 5000:
#     print("白金会员")
# elif M >= 200 and M < 500 and S >= 2000:
#     print("黄金会员")
# elif M >= 100 and M < 200 and S >= 1000:
#     print("白银会员")
# elif M >= 500 and S >= 1000:
#     print("青铜会员")
# elif S < 500:
#     print("普通会员")


